﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Game.ConsoleGame;

namespace Window
{
    class Program
    {
        static void Main(string[] args)
        {
            
            Games game1 = new Games();
            game1.name = "《只狼》";
            game1.conut = 50;
            game1.price = 299;
            game1.remarks = "惊险刺激";
            Console.WriteLine();
            game1.ShowInfo();
            Games game2 = new Games();
            game2.name = "《战神》";
            game2.conut = 63;
            game2.price = 222;
            game2.remarks = "惊险刺激";
            Console.WriteLine();
            game1.ShowInfo();
            Games game3 = new Games();
            game3.name = "《黑暗之魂》";
            game3.conut = 99;
            game3.price = 555;
            game3.remarks = "惊险刺激";
            Console.WriteLine();
            game1.ShowInfo();
            Games[] num = new Games[3];
            num[0] = game1;
            num[1] = game2;
            num[2] = game3;
           
            
            for (int i = 0; i <= num.Length; i++)
            {
                Console.WriteLine("输入销售数量：");
                int saleCount = int.Parse(Console.ReadLine());
                num[1].Sale(saleCount);
            }

            for (int i = 0; i <= num.Length; i++)
            {
                Console.WriteLine("输入销售数量：");
                int number = int.Parse(Console.ReadLine());
                num[1].Purchase();

            }
            game1.ShowInfo();
            game2.ShowInfo();
            game3.ShowInfo();

        }
    }
}
